flagellate (oneself)

Translations
бичевать (себя)
He would flagellate himself as a form of penance.
Он бы бичевал себя в качестве формы покаяния.